//
//  SDCollectionCell.m
//  SuperDoctor
//
//  Created by 陶宏路 on 16/7/7.
//  Copyright © 2016年 SD. All rights reserved.
//

#import "SDCollectionCell.h"
#import "SDInfoTableController.h"
#import "SDinfosTableController.h"
@interface SDCollectionCell ()

@property (nonatomic,strong) SDInfoTableController * controller;

@property (nonatomic,strong) SDinfosTableController * controllers;

@end
@implementation SDCollectionCell

-(void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.controller.view.frame = self.bounds;
    self.controllers.view.frame = self.bounds;
}

-(void)setChange:(BOOL)change{
    
    _change = change;
    
    if (change == 0) {
        
        SDInfoTableController * vc = [[SDInfoTableController alloc]init];
        
        self.controller = vc;
        
        [self addSubview:vc.view];
        
    }else{
        
        SDinfosTableController * vc2 = [[SDinfosTableController alloc]init];
        
        self.controllers = vc2;
        
        [self addSubview:vc2.view];
        
    }
    
}
@end
